import request from '@/utils/service.js'

//全查
export let findAllFoodByLimit=()=>{
    
    return request({
        url:'/food/findAllFoodByLimit',
        method:'GET',
        params:{
            flag:1,
            current:1,
            pageSize:10,
         }
    })
}

//修改库存

export let updatefoodnum=(kucun,foodId)=>{
    return request({
        url:'/food/updatefoodnum',
        method:'GET',
        params:{
            foodId: foodId,
            foodNum:kucun,
         }
    })
}

//菜品名称模糊搜索
export let findlikelimit=(input)=>{
    return request({
        url:' /food/findlikelimit',
        method:'GET',
        params:{
            foodName:input,
            current:1,
            pageSize:10,
         }
    })
}

//根据菜品类别搜索
export let findbylimitAndsort=(num)=>{
    return request({
        url:'/food/findbylimitAndsort',
        method:'GET',
        params:{
            sortId: num,
            current:1,
            pageSize:10,
         }
    })
}
//新增库存盘点单
export let add=()=>{
    return request({
        url:'/inventory/add',
        method:'POST',
        data:{
            
         }
    })
}
//停售
export let haltArrfoods=(tingshou)=>{
    return request({
        url:'/food/haltArrfoods',
        method:'GET',
        params:{
            foodsid:tingshou,
         }
    })
}

//打折菜品
export let findDiscount=()=>{
    return request({
        url:'/food/findDiscount',
        method:'GET',
    })
}





